<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cal list</title>
</head>
<body>
    <table border="1">
        <thead>
            <tr>
                <td>a</td>
                <td>b</td>
                <td>result</td>
            </tr>
        </thead>
        {% for data in data %}
            <tr>
                <td>{{ data.a }}</td>
                <td>{{ data.b }}</td>
                <td>{{ data.result }}</td>
            </tr>  
        {% endfor %}
        
    </table>

    <form action="/deldata/" method="POST"> <!--action="/deldata/"，以'/'结尾-->
        {% csrf_token %}
        <input type="submit" value="清库">
    </form>

</body>
</html>